//
//  PopoverMyTableCell.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/9/1.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class PopoverMyTableCell: BaseTableViewCell {
    
    
    @IBOutlet weak var rightImage: UIImageView!
    @IBOutlet weak var leftLabel: UILabel!
    
    var nameStr : String?
    
    var isSelect = false{
    
        didSet{
        
            if isSelect == true {
                rightImage.isHidden = false
                leftLabel.textColor = UIColor.selectTextColor()
            } else {
                rightImage.isHidden = true
                leftLabel.textColor = UIColor.noSelectTextColor()

            }
            
            
            if nameStr != nil {
                leftLabel.text = nameStr
            }else{
                leftLabel.text = ""

            
            }
        
        }
    
    }


    override func awakeFromNib() {
        super.awakeFromNib()
        contentView.backgroundColor = UIColor.white
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
